package com.glasses.dao.imp;

import com.glasses.dao.OrderDao;
import com.glasses.entity.Indent;
import com.glasses.orm.base.Ex.BaseDaoEx;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by ashin on 2018/1/24.
 */
@Repository
public class OrderDaoImp extends BaseDaoEx implements OrderDao {

    @Override
    protected void init() {
        super.init(this);
    }

    @Override
    public int deleteOrder(Map map) throws Exception {
        return this.delete("deleteOrder",map);
    }

    @Override
    public int insertListIndent(List<Indent> indentList) throws Exception {
        return this.save("insertListIndent",indentList);
    }

    @Override
    public Map getOrderCountStatus(Map map) throws Exception {
        return this.get("getOrderCountStatus",map);
    }

    @Override
    public Map getCommodityStatusCount(Map map) throws Exception {
        return this.get("getCommodityStatusCount",map);
    }
}
